#pragma once

#ifdef _WIN32_WCE
#error "CDHtmlDialog is not supported for Windows CE."
#endif 

// CDlgSendFileHtml dialog

class CDlgSendFileHtml : public CDHtmlDialog
{
	DECLARE_DYNCREATE(CDlgSendFileHtml)

public:
	CDlgSendFileHtml(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSendFileHtml();
// Overrides
	HRESULT OnButtonOK(IHTMLElement *pElement);
	HRESULT OnButtonCancel(IHTMLElement *pElement);
	HRESULT OnButtonSend(IHTMLElement *pElement);
	HRESULT OnButtonView(IHTMLElement *pElement);	
	HRESULT OnButtonAttach(IHTMLElement *pElement);

// Dialog Data
	enum { IDD = IDD_DIALOG_SEND_FILE_HTML, IDH = IDR_HTML_DIALOG_SEND_FILE_HTML };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnNavigateComplete(LPDISPATCH pDisp, LPCTSTR szUrl);

	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
	DECLARE_DHTML_EVENT_MAP()

public:
	void CorrectFilename(CString* pszFileName);	

public:
	LONG m_nUserID;
	LONG m_nItemID;
	LONG m_nStaffID;
	LONG m_nUserCode;
	LONG m_nLibraryID;
	INT m_nStatus;
	INT m_nCollectionID;
	CString m_szFileName;
	CString m_szRequest;
	CString m_szDateIn;	
	CString m_szDescription;
	CString m_szTo;
	CString m_szFID;

	CString m_szInfo;
	BOOL m_bDeferEmail;
	BOOL m_bDeleteFile;
	BOOL m_bPreviewEmail;
	BOOL m_bManual;	
	INT m_nHeight;
	INT m_nWidth;

	CString m_szMessage;
	CString m_szFrom;
	CString m_szName;
	CString m_szSubject;
	CString m_szAttach;
	CString m_szFile;

};
